package com.example.boke.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import cn.hutool.core.annotation.Alias;


@Data
@TableName("goods")
public class Goods{
private static final long serialVersionUID = -37310369757333880L;
 
    /**
     * 商品id
     */
    @TableId(value ="id",type= IdType.ASSIGN_ID)
    @JsonSerialize(using = ToStringSerializer.class)
    @Alias("商品id")
    private Integer id;
        /**
     * 商品名称
     */
    @TableField(value = "goods")
    @Alias("商品名称")
    private String goods;
        /**
     * 商品单价(盒)
     */
    @TableField(value = "price")
    @Alias("商品单价(盒)")
    private Double price;
        /**
     * 商品单价(条)
     */
    @TableField(value = "prices")
    @Alias("商品单价(条)")
    private Double prices;
        /**
     * 商品数量
     */
    @TableField(value = "number")
    @Alias("商品数量")
    private Integer number;
        /**
     * 商品链接
     */
    @TableField(value = "images")
    @Alias("商品链接")
    private String images;
        /**
     * 商品分类
     */
    @TableField(value = "type")
    @Alias("商品分类")
    private String type;
        /**
     * 进价
     */
    @TableField(value = "priceer")
    @Alias("进价")
    private Double priceer;

}
